package com.jeejam.product.sdk.api;

import com.jeejam.framework.base.pojo.Pager;
import com.jeejam.product.sdk.dto.AttributeDto;

import java.util.List;

public interface IAttributeService {

	public int counts();

	public Pager getPager(int currentPage, int pageSize);

	public List<AttributeDto> findAllByPage(int currentPage, int pageSize);

	public Pager getPagerByCounts(int counts,int currentPage, int pageSize);

	public void deleteById(int id);

	public AttributeDto getById(int id);

	public void save(AttributeDto attributeDto);

	public void update(AttributeDto attributeDto);

	public int getTotalPage(int counts, int pageSize);

	public List<AttributeDto> findByTypeId(int typeId);
	
	public int countsByTypeId(int typeId);
	
	public List<AttributeDto> findByTypeIdAndPage(int typeId, int page, int pageSize);
}
